﻿
using AutoMapper;
using BCDto.Common.DictionaryCategory;
using BCEntity.Common.DictionaryCategory;

namespace BCService.MapperProfiles.Common.DictionaryCategory
{
    public class DictionaryCategoryProfile : Profile
    {
        public DictionaryCategoryProfile()
        {
            //字典分类
            CreateMap<DictionaryCategoryDto, DictionaryCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DictionaryCategoryRequestDto, DictionaryCategoryPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DictionaryCategoryRequestDto, DictionaryCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DictionaryCategoryPutDto, DictionaryCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DictionaryCategoryEntity, DictionaryCategoryDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}